package com.entity;

import java.io.Serializable;

/**
 * registerbook
 * @author 
 */
public class Registerbook implements Serializable {
    /**
     * 登记簿id
     */
    private Integer registerbookid;

    /**
     * 登记簿编号
     */
    private Integer registerbookno;

    /**
     * 外键 楼盘id
     */
    private Integer hid;

    /**
     * 业务宗号（外键）
     */
    private Integer serviceid;

    /**
     * 土地性质（固定）
     */
    private String landstatus;

    /**
     * 土地使用年限（固定）
     */
    private Integer landuseyear;

    /**
     * 分摊共有面积（固定）
     */
    private Double buildingcommonarea;

    /**
     * 终审人/登簿人 
     */
    private Integer uid;

    /**
     * 外键 楼栋id）
     */
    private Integer buildingid;

    /**
     * 外键客户id）
     */
    private Integer clientid;

    /**
     * 、外键 所有权证号为所有权id）
     */
    private Integer osid;

    /**
     * 套内建筑面积
     */
    private Double buildingarea;

    /**
     * 软删除标记（登记簿状态）
     */
    private Integer delstatus;

    /**
     * 登记簿打印状态（）
     */
    private Integer printstatus;

    /**
     * 房屋id
     */
    private Integer roomid;
    private static final long serialVersionUID = 1L;

    public Integer getRegisterbookid() {
        return registerbookid;
    }

    public void setRegisterbookid(Integer registerbookid) {
        this.registerbookid = registerbookid;
    }

    public Integer getRegisterbookno() {
        return registerbookno;
    }

    public void setRegisterbookno(Integer registerbookno) {
        this.registerbookno = registerbookno;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Integer getServiceid() {
        return serviceid;
    }

    public void setServiceid(Integer serviceid) {
        this.serviceid = serviceid;
    }

    public String getLandstatus() {
        return landstatus;
    }

    public void setLandstatus(String landstatus) {
        this.landstatus = landstatus;
    }

    public Integer getLanduseyear() {
        return landuseyear;
    }

    public void setLanduseyear(Integer landuseyear) {
        this.landuseyear = landuseyear;
    }

    public Double getBuildingcommonarea() {
        return buildingcommonarea;
    }

    public void setBuildingcommonarea(Double buildingcommonarea) {
        this.buildingcommonarea = buildingcommonarea;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getBuildingid() {
        return buildingid;
    }

    public void setBuildingid(Integer buildingid) {
        this.buildingid = buildingid;
    }

    public Integer getClientid() {
        return clientid;
    }

    public void setClientid(Integer clientid) {
        this.clientid = clientid;
    }

    public Integer getOsid() {
        return osid;
    }

    public void setOsid(Integer osid) {
        this.osid = osid;
    }

    public Double getBuildingarea() {
        return buildingarea;
    }

    public void setBuildingarea(Double buildingarea) {
        this.buildingarea = buildingarea;
    }

    public Integer getDelstatus() {
        return delstatus;
    }

    public void setDelstatus(Integer delstatus) {
        this.delstatus = delstatus;
    }

    public Integer getPrintstatus() {
        return printstatus;
    }

    public void setPrintstatus(Integer printstatus) {
        this.printstatus = printstatus;
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Registerbook other = (Registerbook) that;
        return (this.getRegisterbookid() == null ? other.getRegisterbookid() == null : this.getRegisterbookid().equals(other.getRegisterbookid()))
            && (this.getRegisterbookno() == null ? other.getRegisterbookno() == null : this.getRegisterbookno().equals(other.getRegisterbookno()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getServiceid() == null ? other.getServiceid() == null : this.getServiceid().equals(other.getServiceid()))
            && (this.getLandstatus() == null ? other.getLandstatus() == null : this.getLandstatus().equals(other.getLandstatus()))
            && (this.getLanduseyear() == null ? other.getLanduseyear() == null : this.getLanduseyear().equals(other.getLanduseyear()))
            && (this.getBuildingcommonarea() == null ? other.getBuildingcommonarea() == null : this.getBuildingcommonarea().equals(other.getBuildingcommonarea()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getBuildingid() == null ? other.getBuildingid() == null : this.getBuildingid().equals(other.getBuildingid()))
            && (this.getClientid() == null ? other.getClientid() == null : this.getClientid().equals(other.getClientid()))
            && (this.getOsid() == null ? other.getOsid() == null : this.getOsid().equals(other.getOsid()))
            && (this.getBuildingarea() == null ? other.getBuildingarea() == null : this.getBuildingarea().equals(other.getBuildingarea()))
            && (this.getDelstatus() == null ? other.getDelstatus() == null : this.getDelstatus().equals(other.getDelstatus()))
            && (this.getPrintstatus() == null ? other.getPrintstatus() == null : this.getPrintstatus().equals(other.getPrintstatus()))
            && (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRegisterbookid() == null) ? 0 : getRegisterbookid().hashCode());
        result = prime * result + ((getRegisterbookno() == null) ? 0 : getRegisterbookno().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getServiceid() == null) ? 0 : getServiceid().hashCode());
        result = prime * result + ((getLandstatus() == null) ? 0 : getLandstatus().hashCode());
        result = prime * result + ((getLanduseyear() == null) ? 0 : getLanduseyear().hashCode());
        result = prime * result + ((getBuildingcommonarea() == null) ? 0 : getBuildingcommonarea().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getBuildingid() == null) ? 0 : getBuildingid().hashCode());
        result = prime * result + ((getClientid() == null) ? 0 : getClientid().hashCode());
        result = prime * result + ((getOsid() == null) ? 0 : getOsid().hashCode());
        result = prime * result + ((getBuildingarea() == null) ? 0 : getBuildingarea().hashCode());
        result = prime * result + ((getDelstatus() == null) ? 0 : getDelstatus().hashCode());
        result = prime * result + ((getPrintstatus() == null) ? 0 : getPrintstatus().hashCode());
        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", registerbookid=").append(registerbookid);
        sb.append(", registerbookno=").append(registerbookno);
        sb.append(", hid=").append(hid);
        sb.append(", serviceid=").append(serviceid);
        sb.append(", landstatus=").append(landstatus);
        sb.append(", landuseyear=").append(landuseyear);
        sb.append(", buildingcommonarea=").append(buildingcommonarea);
        sb.append(", uid=").append(uid);
        sb.append(", buildingid=").append(buildingid);
        sb.append(", clientid=").append(clientid);
        sb.append(", osid=").append(osid);
        sb.append(", buildingarea=").append(buildingarea);
        sb.append(", delstatus=").append(delstatus);
        sb.append(", printstatus=").append(printstatus);
        sb.append(", roomid=").append(roomid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
